/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package edu.upf.grupE.impl;


import edu.upf.grupE.Content;
import edu.upf.grupE.DescriptionContent;
import edu.upf.grupE.Entities.Picture;

/**
 *
 * @author xday666
 */
public class dataContent implements Content, DescriptionContent {
    private Picture picture;
    private Object data;

    /**
     * Creates the dataContent and adds a picture to it.
     * @param pic The Picture
     */
    public dataContent(final Picture pic) {
            picture = pic;
        }
    /**
     * Creates the object adding a picture and an objec data.
     * @param pic Picture to add
     * @param info Object with information
     */
    public dataContent(final Picture pic, final Object info) {
            picture = pic;
            data = info;
        }
    /**
     * Returns the data.
     * @return Object data
     */
    public final Object getData() {
            return data;
        }
    /**
     * Ses the object data.
     * @param info
     */
    public final void setData(final Object info) {
            this.data = info;
        }

        /**
         * Returns the picture.
         * @return The object Picture
         */
        public final Picture getPicture() {
            return picture;
        }


}
